#include <iostream>
#include <string>
#include "queue.h"

using namespace std;

int main()
{
	queue<int> q;
	q.push_back(5);
	q.push_back(10);
	q.push_back(20);
	q.push_back(30);
	q.push_back(40);

	cout << q.str() << endl;

	int i = q.pop_front();

	cout << q.str() << endl;

	q.push_back(89);

	cout << q.str() << endl; 

	q.pop_front();

	cout << q.str() << endl;

	for (auto it = q.begin(); it != q.end(); it++)
	{
		cout << it->data << endl;
	}

	system("pause");
	return 0;
}